home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
cc352.zip
/
COPYCON.DOC
next >
Wrap
Text File
|
1989-11-03
|
22KB
|
576 lines
CopyCon
Version 3.50
September 1989
by
John E. Bean, P.E.
JB Technology Inc.
28701 N. Main St.
Ridgefield, Wa. 98642
INTRODUCTION
CopyCon is a program to be used in lieu of the DOS command COPY CON. I
have used COPY CON numerous times in creating batch files and miscel-
laneous small text files.
I have experienced many frustrating moments using COPY CON. I have ac-
cidently overwritten existing files. I have mistyped commands only to
notice them while entering the next line. I have also wanted to have
graphic boxes in my batch files.
CopyCon alleviates all of the above problems. It checks to see if the
specified file exists, and if it does CopyCon provides either loading
the existing file or allows the existing file to be overwritten. Copy-
Con also has full screen editing capability and built in Macros which
aids in creating files.
CopyCon was written in Turbo Pascal 5.0 using routines from Turbo 5.0
Professional.
CopyCon is so easy to use that this manual is not necessary but the
following sections will briefly discuss how to use CopyCon.
LIMITATIONS
I have designed CopyCon for typical batch files and small text files.
It is not designed to be a text editor! If you need a text editor, Ez-
Doss (A Dos Shell), which I have written, includes a text editor.
There are two main limitations that I designed into this program. They
are:
* The maximum length of a text line is 80 charac-
ters.
* There is no word wrap.
These limitations were done to distinguish the difference between Copy-
Con and a text editor.
GETTING STARTED
CopyCon is comprised of two (2) files. They are:
* Copycon.exe - The executable program.
* Copycon.doc - This documentation.
Start CopyCon by issuing the following command at the DOS prompt:
A:>CopyCon (filename).
As you can see this is identical to using the DOS command COPY CON ex-
cept there is not a space between Copy and Con. The user is responsible
for providing a valid filename.
Once the program is loaded into memory, the program will check to see
if your computer has a color graphics card. If it does the program will
be displayed in color. You can force CopyCon to be displayed in black
and white by typing in "/bw" AFTER the filename on the command line.
For example; if you wish to create a batch file named "CPY.BAT" and
have CopyCon be in black and white the following is the correct syntax.
A:>CopyCon CPY.BAT /bw
Next the screen will be cleared, ">CopyCon (filename)" will be dis-
played in the upper left hand corner. Several other items will be dis-
played to the right of the file name. They are:
* F1 - Help: A help menu is available simply by de
pressing the F1 function key. The help
menu provides information on editing
keys and several batch file command.
* F2 - Macros: Depressing the F2 function key will
display the predefined Macros.
* 1,1: The y,x position of the cursor. The y
position is the FILE LINE position.
* INS: If the insert mode is ON then INS will
be displayed.
* [max line]: The number displayed inside the "[ ]"
is the maximum number of lines your
file can have. For a 640K machine, this
should be around 5000.
If the file entered on the command line exists, a pop up menu will ap-
pear offering the following choices:
* LOAD: This option will load the existing file
and CopyCon can be used to modify the
file.
* OVERWRITE: This option will overwrite the existing
file.
* EXIT: This option will abort CopyCon.
The cursor will be located at the left hand column of your screen. You
are now ready to create/edit your file.
EDITING COMMANDS
CopyCon provides simple editing commands. These commands can be dis-
played while editing through the Help Menu which is accessed by de-
pressing the F1 function key. The editing commands can be broken into
the following sections.
CURSOR PAD KEYS:
Up Arrow Key:
Depressing the Up arrow key will move the cursor to the
previous line. Depressing the Up arrow key while on line
one will result in the display of an error message.
Down Arrow Key:
Depressing the Down arrow key will move the cursor to
the next line. Depressing the Down arrow key while on
the last line entered will result in the display of an
error message.
Left Arrow Key:
Depressing the Left arrow key will move the cursor one
position left on the current line. Depressing the Left
arrow key while at the leftmost column on the screen
will result in the display of an error message.
Right Arrow Key:
Depressing the Right arrow key will move the cursor one
position right on the current line. Depressing the Right
arrow key while at the rightmost column on the screen
will result in the display of an error message.
Home Key:
Depressing the HOME key will move the cursor to the
leftmost position on the current line.
End Key:
Depressing the END key will move the cursor to the
rightmost position on the current line.
Tab Key:
Depressing the TAB key will move the cursor right eight
(8) spaces.
Shift Tab Key:
Simultaneously depressing the Shift key and the Tab key
will move the cursor left eight (8) spaces.
Ctrl Home Key:
Simultaneously depressing the Ctrl key and the HOME key
will move the cursor to the top of the screen.
Ctrl End Key:
Simultaneously depressing the Ctrl key and the END key
will move the cursor to the bottom of the screen.
Ctrl PgDn Key:
Simultaneously depressing the Ctrl key and the PgDn key
will move the cursor to the end of the file. If the cur-
sor is already at the end of the file an error message
will be displayed.
Ctrl PgUp Key:
Simultaneously depressing the Ctrl key and the PgUp key
will move the cursor to the top of the file. If the cur-
sor is already at the top of the fi